/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ShowerColumn {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040014';
    }

    get categoryName() {
        return '\u6dcb\u6d74\u67f1';
    }

    getFlowSpeed(params) {
        return command({
            method: 'getFlowSpeed',
            methodId: 'pZgR0Vew',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vFcGTC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'pGoxs3DU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFlowSpeed(params) {
        return command({
            method: 'setFlowSpeed',
            methodId: 'ppAXwLSm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQ5S7P',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemperature(params) {
        return command({
            method: 'setTemperature',
            methodId: 'peH3AFq5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ShowerColumn;
